<div id="MainContent">
    <div class="clearb">&nbsp;</div>
    <div class="pagecontainer pageoverflow">
        <?php echo $this->flashmessages();?>
        <div style="clear: both;"></div>
            <div id="page_content">
                <?php if (count($this->projectList) > 0): ?> 
                <div class="pageoverflow">
                    <div class="pageinput">
                        <div class="project-ulstyle ">
                        <h2>Customer's Project List</h2>
                        <ul>
                            <?php foreach($this->projectList as $_project): ?>
                            <li>
                                <a href="<?php echo $this->url(array('controller' => 'customer', 'action' => 'projectdetail', 'prj_id' => $_project["prj_id"]), null, true); ?>">
                                    <?php echo $_project['prj_name']; ?>
                                </a>
                            </li>
                            <?php endforeach; ?>
                        </ul>
                        </div>
                    </div>
                </div>
                <?php else: ?> 
                <div id="page_content">
                    <h1 style="color:red;">You are not allocated to any project.</h1>
                    <p style="width:300px;">&nbsp;</p>
                    <div style="clear: both;"></div>
                </div>
                <?php endif; ?> 
                
                
                <div style="clear: both;"></div>
            </div>
    </div>
    
    <p class="pageback">
        <a class="pageback" href="<?php echo $this->url(array('controller' => 'index', 'action' => 'index',), null, true); ?>">
        &#171; Back to Home
        </a>
    </p>
    <div class="clearb"></div>
</div>